# @Author   :   yuanxi
# @Time      :  2022/1/11

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.annApplication.doctorOnlinePage import doctorOnlinePage
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage


class DoctorOnlineCase(UIParent):
    @classmethod
    def test_doctorOnlineCheck(cls):
        '''医生在线咨询校验'''
        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("医生在线咨询")
        authorizePage.ifAuthorize()

        status = doctorOnlinePage.doctorOnlineIndex()
        asserts.true(status, "医生在线咨询校验")
